home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global lastName
- set current to the name of cast the castNum of sprite the clickOn
- set oH to the locH of sprite the clickOn
- set oV to the locV of sprite the clickOn
- puppetSprite(the clickOn, 1)
- puppetSprite(12, 1)
- repeat with t = the clickOn + 1 to 7
- set the visible of sprite t to 0
- end repeat
- set the castNum of sprite the clickOn to the number of cast "soundsMenu"
- set the locH of sprite the clickOn to 145
- set the locV of sprite the clickOn to 174
- updateStage()
- set the constraint of sprite 12 to the clickOn
- set the locH of sprite 12 to the left of sprite the clickOn
- repeat while the mouseDown
- set the locV of sprite 12 to the mouseV
- updateStage()
- end repeat
- set the constraint of sprite 12 to 0
- set the locV of sprite 12 to 600
- updateStage()
- set mV to the mouseV - 13
- set V to 0
- set selection to 0
- repeat while V < mV
- set V to V + 22
- set selection to selection + 1
- end repeat
- if (selection > 0) and (selection <= (the number of lines in field "soundsFld" - 1)) then
- set current to line selection of field "soundsFld"
- put line selection of field "soundsFld"
- end if
- set snd to current & "FX"
- puppetSound(snd)
- updateStage()
- wait(1)
- puppetSound(0)
- set the castNum of sprite the clickOn to the number of cast current
- set the locH of sprite the clickOn to oH
- set the locV of sprite the clickOn to oV
- updateStage()
- set fld to lastName & "Fld"
- put the castNum of sprite the clickOn into line the clickOn of field fld
- repeat with t = the clickOn + 1 to 7
- set the visible of sprite t to 1
- end repeat
- end
-